﻿using HandmadeShop.BusinessLogic.Repositories;
using HandmadeShop.Database;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HandmadeShop.BusinessLogic
{
    public class BaseBL
    {
        protected UnitOfWork unitOfWork;

        public BaseBL()
            : this(null)
        {
        }

        public BaseBL(HandmadeShopEntities context)
        {
            if (context == null)
                this.unitOfWork = new UnitOfWork();
            else
                this.unitOfWork = new UnitOfWork(context);
        }
    }
}
